package com.zhledu.mongo.beans;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;
import org.springframework.data.annotation.Version;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Document(collation = "student")
@Data
public class Student {

    @Id
    private String id;

    private String name;

    private String sno;

    private String birthDay;

    private int age;

    private String idCard;

    private String phone;

    private String major;

    private String email;

    private String username;

    private String password;

    private String address;

    private Date createTime;

    @Transient
    private boolean dr;

    @Version
    private long version;

    private int state;


}
